package com.basic.hellorabbit;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
* @Description:    消费者
* @Author:         Joe
* @CreateDate:     2020/3/12 17:08
*/
/*@Component
@RabbitListener(queues = "TestRabbitMQ") //监听、订阅、消费该队列
public class RabbitConsumer {

    @RabbitHandler
    public void subscribe(String content){
        System.out.println("消费者:"+content);
    }
}*/
